//
//  FDMBroadcastFMCollectionViewCell.m
//  Entertainment
//
//  Created by dllo on 16/4/22.
//  Copyright © 2016年 付冬梅. All rights reserved.
//

#import "FDMBroadcastFMCollectionViewCell.h"

@implementation FDMBroadcastFMCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.titleImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.titleImageView];
        [self.titleImageView release];
       
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    [super applyLayoutAttributes:layoutAttributes];
    [self.titleImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top).with.offset(10);
        make.left.equalTo(self.contentView.mas_left).with.offset(10);
        make.right.equalTo(self.contentView.mas_right).with.offset(-10);
        make.bottom.equalTo(self.contentView.mas_bottom).with.offset(0);
    }];
}

- (void)dealloc {
    [self.titleImageView release];
    [super dealloc];
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
